package com.liuscraft.tradingplatform.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.liuscraft.tradingplatform.entity.LuckPermission;
import com.liuscraft.tradingplatform.entity.LuckRolePermission;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LiusCraft
 * @since 2023-03-06
 */
public interface ILuckRolePermissionService extends IService<LuckRolePermission> {

    LuckRolePermission addPermissionToRole(Integer permissionId, Integer roleId);
    List<LuckPermission> getRolesPermission(Set<Integer> roleIds);
    List<LuckPermission> getRolePermission(Integer roleId);
}
